package com.swl.service.impl;

import com.swl.dao.ChooseDao;
import com.swl.pojo.Choose;
import com.swl.service.ChooseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ChooseServiceImpl implements ChooseService {
    @Autowired
    private ChooseDao chooseDao;

    @Override
    public Choose selectAnswerByChooseId(int choseId) {
        return chooseDao.selectAnswerByChooseId(choseId);
    }

    @Override
    public List<Choose> selectChooseByTid(int tid) {
        return chooseDao.selectChooseByTid(tid);
    }

    @Override
    public int insertChoose(Choose choose) {
        return chooseDao.insertChoose(choose);
    }
}
